Repository navigation
feat(health): Vercel sensor (failed production deploys) - #39
Merged
Merged
Conversation
Fourth kit health sensor, reusing the httpGet probe path. Reads projectId/teamId from .vercel/project.json (ctx.vercel), probes /v6/deployments?target=production with VERCEL_TOKEN, flags the latest terminal prod deployment red on state=ERROR (CANCELED not red), unknown (never false green) on not-linked / missing token / non-OK. Selected when .vercel/project.json is present. CHANGELOG: SSH-lock moved to [1.13.0] (it shipped in the v1.13.0 tag at HEAD), Vercel under [Unreleased].
|
✅ Docker image built successfully
|
This was referenced Jul 10, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Resumes the sentinel ladder — the 4th
kit healthsensor, reusing thehttpGetprobe path the GitLab/Bitbucket sensors introduced.What
GET https://api.vercel.com/v6/deployments?projectId=…&target=productionwithVERCEL_TOKEN(+teamIdfrom the link). Flags the most recent terminal production deployment red whenstate/readyStateisERROR(CANCELED/in-progress are not red). Reportsunknown(never a falsegreen) when the project isn't linked, the token is missing, or the API returns non-OK.projectId/teamIdare read from.vercel/project.jsonincmdHealthintoctx.vercel; the sensor is selected only when aprojectIdis present.CHANGELOG note
Moved the SSH-lock entry into
[1.13.0]— thev1.13.0tag was cut atmainHEAD, which included the SSH-lock merge (#37), so it shipped in 1.13.0. Vercel sits in[Unreleased]for 1.14.0.Verify
npm run build && npm test→ build clean, 1348 tests, 0 fail (+8: deployment parse, latest-failed selection, probe red/unknown/not-linked/missing-token/non-OK). Live API smoke pending a realVERCEL_TOKEN; parsers fixture-tested.git-host coverage is now even AND deploys are covered (GitHub Actions, GitLab CI, Bitbucket Pipelines, Vercel). Remaining ladder: Sentry/Supabase/Resend/cert sensors, then layer 2 (the responder routine).
🤖 Generated with Claude Code